{% extends 'ShopAdminBundle::my_form_add.html.twig'%}

{% set _module='商品' %}

{% if is_edit is defined %}
    {% set _current='编辑商品'%}
{% else %}
    {% set _current='添加商品' %}
{% endif %}

{% block form_groups %}
    {% include 'ShopAdminBundle:Product:form.html.twig' %}
{% endblock %}

{% block plugin_js %}

    <script>
        var brand_id=  "{{ entity.brandId | default('') }}";
        var shop_id="{{ entity.shopId | default('') }}";

        wxi.require('admin/product.all.js');

    </script>

{% endblock %}